package cn.com.dao;

import cn.com.domain.Customer;
import cn.com.domain.Room;
import cn.com.domain.User;

import java.util.List;

public interface CustomerDao {
    public List<Customer> findAll();
    void addCustomer(Customer customer);
    void delteCustomer(Customer customer);
    void delteCustomerbyid(String id);
    void alterCustomerbyid(Customer customer, String id);
    Customer findcustomerByidentity_numandphone(String identity_num,String phone);

    /**
     * 查询总记录数
     * @return
     */
    int findcustomerTotalCount();

    /**
     * 分页查询每页记录
     * @param start
     * @param rows
     * @return
     */
    List<Customer> findcustomerByPage(int start, int rows);

}
